Skip to content

feat(ServerInfoDto): add optional libraryCount (v0.10.1)#13

Merged
detain merged 1 commit into
masterfrom
feat/server-info-library-count
Jun 23, 2026
Merged

feat(ServerInfoDto): add optional libraryCount (v0.10.1)#13
detain merged 1 commit into
masterfrom
feat/server-info-library-count

Conversation

@detain

@detain detain commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Adds an optional ?int libraryCount to ServerInfoDto (the contract for the hub's GET /api/v1/me/servers), round-tripped through fromPayload()/toPayload(), default null for back-compat. Unblocks the hub showing a real library count in My Servers instead of "—". 7 DTO tests pass, phpstan L9 + phpcs clean.

The hub's My Servers UI showed Libraries as '--' because ServerInfoDto (the
contract for GET /api/v1/me/servers) had no library-count field. Add an
optional ?int libraryCount (default null), round-tripped through
from/toPayload, so the hub can surface the count it already caches in
server_libraries. Absent/null tolerated for back-compat.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@detain detain merged commit 956c3fe into master Jun 23, 2026
1 check was pending
@detain detain deleted the feat/server-info-library-count branch June 23, 2026 18:56
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 3 minor

Alerts:
⚠ 3 issues (≤ 0 issues of at least minor severity)

Results:
3 new issues

Category Results
CodeStyle 3 minor

View in Codacy

🟢 Metrics 4 complexity · 0 duplication

Metric Results
Complexity 4
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.36%. Comparing base (e25efef) to head (b4a66fc).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #13      +/-   ##
============================================
+ Coverage     57.11%   57.36%   +0.24%     
- Complexity      400      403       +3     
============================================
  Files            38       38              
  Lines          1215     1222       +7     
============================================
+ Hits            694      701       +7     
  Misses          521      521              
Flag Coverage Δ
phpunit 57.36% <100.00%> (+0.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant